package com.chinasoft.set01.hashset;

import java.util.HashSet;

public class HashsetDemo01 {
    public static void main(String[] args) {
        HashSet<String> set = new HashSet<>();

        set.add("hello");
        set.add("world");
        set.add("java");

        set.add("hello");

        for (String s:set){
            System.out.println("s = " + s);
        }

    }
}